<?php
/* Service */
$service = array(
	new $pattern ($self, array(
		'(:base_url)/(:oid)/(:path)$',
		'module'   => 'Node', 
		'action' => 'DeleteObject',
		'path' => 'del',
		'oid' => '[0-9]+'
	  )),	
	"object_undelete"=>new $pattern ($self, array(
		'(:base_url)/(:oid)/(:path)$',
		'module'   => 'Node', 
		'action' => 'UnDeleteObject',
		'path' => 'undel',
		'oid' => '[0-9]+'
	  )),	
	new $pattern ($self, array(
	  '(:base_url)/(:path)$', 		'module'   => 'Node', 'action' => 'Logout',  
		'path' => 'logout',
	  )),
	new $pattern ($self, array(
	  '(:base_url)/(:path)$', 		'module'   => 'Admin', 'action' => 'InitDB',  
		'path' => 'initdb',
	  )),
 	new $pattern ($self, array(
	  '(:base_url)/(:path)$', 		'module'   => 'Admin', 'action' => 'MakeAdmin',  
		'path' => 'makeadmin',
	  )),

	new $pattern ($self, array(
	  '(:base_url)/(:path)$', 		'module'   => 'Admin', 'action' => 'UpdateDB',  
		'path' => 'updatedb',
	  )),
	new $pattern ($self, array(
	  '(:base_url)/(:community_url)/(:path)$', 		'module'   => 'Community', 'action' => 'Test',  
		'path' => 'test',
	  )),
	'filestorage' => new $pattern ($self, array(
		'(:base_url)/(:path)/(:file_oid)$',
		'module'   => 'Community',
		'action' => 'Filestorage',
		'path' => 'filestorage',
		'file_oid' => '[0-9]+',
		'document_root' => $self->defaults['base_url'] .'/var/store/',
		'show_indexes' => True,
	)),
	'imagestorage' => new $pattern ($self, array(
	  '(:base_url)/(:path)/(:image_oid)/(:image_type)$',     'module'   => 'Community', 'action' => 'Imagestorage',
		'path' => 'imagestorage',
		'image_oid' => '[0-9]+',
		'image_type' => '[._a-zA-Z0-9]+',
		'document_root' => $self->defaults['base_url'] .'/var/store/',
	)),
	new $pattern ($self, array(
		'(:base_url)/(:path)/(:template)$',
		'module'   => 'generic',
		'action' => 'direct_to_template',
		'path' => 'tpl',
		'template' => '.*'
	)),	
	"jtpl_handler"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:path)/(:template)$',
		'module'   => 'Community',
		'action' => 'GetJTemplate',
		'path' => 'getjtpl',
		'template' => '.*'
	)),	
	
	new $pattern ($self, array(
	  '(:base_url)/(:path)$',                      'module'   => 'Node', 'action' => 'OpenId',
	  'path' => 'login',  
	  )),	

	new $pattern ($self, array(
	  '(:base_url)/(:path)$',                      'module'   => 'Node', 'action' => 'ShowRegistration',
	  'path' => 'registration',  
	  )),	
	  
	new $pattern ($self, array(
	  '(:base_url)/(:path)$',                      'module'   => 'Generic', 'action' => 'Redirect',
	  'path' => 'redirect',  
	  )),	

	"resource_link"=>new $pattern ($self, array(
	  '(:base_url)/(:skins)/(:skin_name)/(:filepath)$',                      'module'   => '', 'action' => '',
	  'skins' => 'skins', 
	  'skin_name'=>'[a-zA-Z]',
	  'filepath'=>'[a-zA-Z_\./]',
	  )),	

);

